package chap5;

/**
 * @author oldliu
 * @since 1.0
 */
public class SzhaoShuzi {
    public static void main(String[] args) {
        //五位数，十位是偶数，能变3，7和11整除
        for (int k = 10000; k < 100000; k++) {
            //if((k/10%10)%2==0 && k%3==0 && k%7==0 &&k%11==0)
            if ((k / 10 % 10) % 2 != 0)
                continue;
            if (k % 3 != 0)
                continue;
            if (k % 7 != 0)
                continue;
            if (k % 11 != 0)
                continue;

            System.out.println(k);
        }
    }
}
